<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>redirect Example</title>
</head>
<body>
c:redirect
<br/>
<c:url value="MyDoGet" var="myurl2"/>
<c:set var="toDoGet">
<%--  http://localhost:8080/wk11d1_jstl_project_war/MyDoGet  --%>
    ${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/${myurl2}
</c:set>
<c:redirect url="${toDoGet}">
    <c:param name="test" value="www.bilibili.com"  />
</c:redirect>


</body>
</html>